package com.graduate.after.constants;


/**
 * 操作返回的状态码和信息
 */
public enum StatusCode {
    SUCCESS(0001,"操作成功"),
    PARAM_IS_BLANK(0002,"参数为空"),
    USER_NOT_LOGIN(0003,"登录信息失效"),
    SYSTEM_INNER_ERROR(0004, "系统内部错误，请稍后重试"),
    USER_LOGIN_ERROR(0005, "账号不存在或密码错误"),
    USER_HAS_EXISTED(0006, "用户名已存在"),
    QRCODE_CREATE_IS_FAIL(0007,"二维码创建失败");

    private Integer code;
    private String message;

    StatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    StatusCode() {  }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
